package com.hn.zhijian.system.service;

import com.hn.zhijian.base.service.IBaseService;
import com.hn.zhijian.system.entity.SysRole;
import com.hn.zhijian.system.model.request.RoleRequest;
import com.hn.zhijian.system.model.response.RoleResponse;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author carl chen
 * @since 2019-11-17
 */
public interface IRoleService extends IBaseService<SysRole> {
    @Transactional
    public RoleResponse save(RoleRequest request);

    @Transactional
    public RoleResponse update(RoleRequest request);

    @Transactional
    public Integer del(Long id);

    public RoleResponse get(Long id);

    public List<RoleResponse> getRoles();

    public List<RoleResponse> getRoles(String username);
}
